<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    
    * {margin: 0px;padding: 0px;font-size: 12px;color: #000;}
    a {text-decoration: none;}
    li {list-style: none;}
    img {border: 0px;}
    body{background-color: rgb(56, 180, 230);}

    .div1{width: 318px;height: 380px;margin:0px auto;background-color: rgb(255, 255, 255);margin-top: 100px;}
    .div2{background-color: rgba(250, 239, 225, 0.993);text-align: center;padding: 10px;width: 298px;}
    .div2 span{font-size: 10px;color: rgb(167, 167, 167);}
    .dl{width:118px;float: left;text-align: center;padding: 20px;background-color: rgb(255, 255, 255);}
    .dl h1 {font-size: 18px;font-weight: bold;}
    .dl h1:hover{font-size: 18px;color: red;}
    .neir{width:260px;height:40px;border:1px solid rgb(156, 156, 156);margin: 0px auto;margin-top: 20px;}
    .qc{clear:both;}
    .neir img{width: 40px;height:40px;border-right:1px solid rgb(156, 156, 156) ;}
    input{outline: 0px; position: relative;left:9px;top:-15px;border:0px ;}
    button{background-color: red;width: 264px;margin-left: 28px;margin-top: 15px;font-size: 18px;color: rgb(255, 255, 255);outline: 0px;}
    .div1 a{margin-left: 240px;}
    .jiewei{width: 306px;padding: 5px;margin: 0px auto;margin-top: 20px;height:30px;background-color: rgb(255, 255, 255);background-color: rgb(255, 255, 255);}
    .QQ{border-right:1px solid rgb(199, 198, 198); width:60px;height:25px;float: left;}
    .QQ img{width: 25px;height:25px;}
    .QQ .a1{position: relative;left:-210px;top:-24px;}
    .VX{float: left;margin-left: 10px;}
    .VX img{width: 25px;height:25px;}
    .jiewei .a2{position: relative;left:-140px;top:-24px;}
    .hlhs{position: relative;left:200px;top:-43px;}
    .hlhs img{width: 25px;height:25px;}
    .div1 .a3{position: relative;top:-67px;}

</style>
<body>
    <div class="div1">
        <div class="div2">
            <span>京东不会以任何理由要求您转账汇款，谨防诈骗。</span>
        </div>
        <div class="dl"><h1>扫码登陆</h1></div>
        <div class="dl"><h1>账号登陆</h1></div><p class="qc"></p>
        <div  style ="margin-top: 20px;"class="neir"><img src ="../img/02.png"/><input  id ="zh" type="text" placeholder="邮箱/用户名/账号"/></div>
        <div style="margin-bottom: 15px;" class="neir"><img src="../img/03.png"/><input  id ="mm" type="password" placeholder="密码"/></div>
        <a href="#" target="_blank">忘记密码</a>
        <button id="button">登     录</button>
        <div class="jiewei">
            <div class="QQ"><img src="../img/04.png"/><a class="a1" href="#" target="_blank">QQ</a></div>
            <div class="VX"><img src="../img/05.png"/></div>
            <a class="a2" href="#" target="_blank">微信</a>
            <div class="hlhs"><img src ="../img/06.png"/></div>
            <a class="a3" href="#" target="_blank">注册登录</a>
            <p class="qc"></p>
        </div>
    </div>
</body>
<script>
    window.onload = function () {
        let w = localStorage.getItem("i");
        document.getElementById("zh").value = w;
    }
    let ann = document.getElementById("button").addEventListener("click", function () {
        let zh = document.getElementById("zh").value;
        localStorage.setItem("i", zh);
        let w = localStorage.getItem("i");
        console.log(w)
        window.onload = function () {
            let u = localStorage.getItem("k");
            document.getElementById("mm").value = u;
        }
        let mm = document.getElementById("mm").value
        localStorage.setItem("k", mm);
        let u = localStorage.getItem("k");
        console.log(u)
    })
</script>
</html>